﻿:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #eef1f5, #d8e3f0);
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.login-box {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    min-height: 650px;
    position: relative;
}

.login-left {
    flex: 1;
    background: var(--gradient);
    color: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .login-left::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

.login-right {
    flex: 1;
    background: white;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo-text {
    font-weight: 700;
    font-size: 22px;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.news-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    height: 280px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.news-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

    .news-item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

.news-date {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.news-text {
    font-size: 14px;
}

.form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.form-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.form-control {
    border-radius: 12px;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #e9ecef;
    transition: all 0.3s;
    font-size: 15px;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    }

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    margin: 0;
}

.form-check-label {
    font-size: 14px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

    .forgot-link:hover {
        color: var(--primary-dark);
    }

.btn-login {
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    margin-bottom: 25px;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }

.divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
    color: #6c757d;
    font-size: 14px;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        width: 45%;
        height: 1px;
        background: #e9ecef;
    }

    .divider::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 45%;
        height: 1px;
        background: #e9ecef;
    }

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-facebook {
    background: #1877f2;
    color: white;
    border: none;
}

.btn-google {
    background: white;
    color: #5f6368;
    border: 1.5px solid #e9ecef;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.signup-link {
    text-align: center;
    font-size: 14px;
}

    .signup-link a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

        .signup-link a:hover {
            color: var(--primary-dark);
        }

.file-input-container {
    position: relative;
}

/* رسپانسیو برای موبایل */
@media (max-width: 992px) {
    .login-box {
        flex-direction: column;
        min-height: auto;
    }

    .login-left, .login-right {
        padding: 40px 30px;
    }

    .news-box {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .login-left, .login-right {
        padding: 30px 20px;
    }

    .social-login {
        flex-direction: column;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .news-box {
        height: 180px;
    }
}
